package lab02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 * Created by 阿阿阿阿豪丶 on 2017/11/21.
 */
public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int sc;
        System.out.println("请输入一个整数");
        try {
            sc = scanner.nextInt();
        }catch (InputMismatchException e){
            System.out.println("我再说一遍！请输入一个整数！");
        }
        System.out.println("好了，没事了。");
    }
}
